<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        var arr = [11, 22, 33, 44, 55, 66];
        var newArr = arr.filter(function (value, index, array) {//返回的是一个新数组  也是遍历数组
            return value >= 20;
        })
        console.log(newArr);
    </script>
</body>

</html>